#ifndef SERVER_SUBWINDOW1_H
#define SERVER_SUBWINDOW1_H
#include <QtGui/QWidget>
#include <QMessageBox>

#include "../nr_core/nr_object_manager.h"
#include "tree.h"


namespace Ui
{
	class server_subwindow1;
}


class server_subwindow1 : public QWidget
{
	Q_OBJECT

public:
	server_subwindow1(QWidget *parent = 0, Qt::WFlags flags = 0);
	~server_subwindow1();

    void set_device_TreeWidgetItem(DeviceTreeWidgetItem &_device_TreeWidgetItem);
    void set_device_type_manager(nr_device_type_manager &_device_type_manager);

signals:
    void created();

    private slots:
        void on_create_DeviceItem();
        void on_Previous_TabPage();
        void on_CheckDeviceType();
        void on_Create_1();
        void on_Create_2();

private:

	Ui::server_subwindow1* ui;

    DeviceTreeWidgetItem* m_device_TreeWidgetItem;
    nr_device_type_manager* m_device_type_manager;
    int m_lastest_TabPage;
    nr_device_item* m_deviceitem;
};


#endif // SERVER_SUBWINDOW_H
